﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.PB
{
    /// <summary>
    /// 发货计划明细
    /// </summary>
    [Table("PB_DeliveryPlanDetails")]
    public partial class PB_DeliveryPlanDetails
    {

        /// <summary>
        /// 发货计划明细id
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 项目id
        /// </summary>
        public String ProjectId { get; set; }

        /// <summary>
        /// 楼号id
        /// </summary>
        public String BuildingId { get; set; }

        /// <summary>
        /// 车次
        /// </summary>
        public Int32? TrainNumber { get; set; }

        /// <summary>
        /// 计划发货数量
        /// </summary>
        public Double? ShipmentQuantity { get; set; }

        /// <summary>
        /// 计划重量
        /// </summary>
        public Double? ShipmentWight { get; set; }

        /// <summary>
        /// 实际发货数量
        /// </summary>
        public Double? ActualQuantity { get; set; }

        /// <summary>
        /// 实际重量
        /// </summary>
        public Double? ActualWight { get; set; }

        /// <summary>
        /// 父级id(PB_DeliveryPlan)
        /// </summary>
        public String ParentId { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public Boolean? Deleted { get; set; }

        /// <summary>
        /// 二维码
        /// </summary>
        public String QrCode { get; set; }

        public String Louhao { get; set; }

        /// <summary>
        /// 发货状态
        /// </summary>
        public Int32? States { get; set; }

        /// <summary>
        /// 提示信息
        /// </summary>
        public String Message { get; set; }
    }


    public class DeliveryPlanDetailsDTO : PB_DeliveryPlanDetails {

        /// <summary>
        /// 项目名称
        /// </summary>
        public string ProjectName { get; set; }
        /// <summary>
        /// 楼号名称
        /// </summary>
        public string BuildingNo { get; set; }

    }
}